import { createApp } from 'vue'
import 'amfe-flexible'
import router from './router'
import App from './App.vue'
import store from '@/store'
import { ListItem, NavBar } from '@/components' //公共组件
import { Tab, Tabs, Icon, Button, Toast } from 'vant'
import { mockXHR } from './mock'
import './permission'

import 'normalize.css'
import './styles/global.scss'

if (process.env.NODE_ENV === 'development') {
  mockXHR()
}

createApp(App)
.use(Tab)
.use(Tabs)
.use(Icon)
.use(Button)
.use(router)
.use(Toast)
.use(NavBar)
.use(ListItem)
.use(store)
.mount('#app')